package com.neuedu.corejava.ch9.practise;

public class StringDemo {

	public static void main(String[] args) {
		
		StringBuffer sb=new StringBuffer();
		int len=sb.length();
		System.out.println(len); //长度0
		sb.append("hello"); //添加字符串进去
		System.out.println("sb：" + sb);
		
		StringBuffer sb1 = new StringBuffer("world");//构造的时候,就添加字符串
	    System.out.println("sb1：" + sb1);

	}

}
